package junit.controller;

import name.jiaosha.air.company.controller.CarInfoController;
import name.jiaosha.air.company.domain.CarInfo;
import name.jiaosha.air.user.controller.LoginUserController;
import name.jiaosha.air.user.domain.LoginUser;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestLoginUserController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });

		LoginUserController lc = (LoginUserController) context
				.getBean("loginUserController");

		LoginUser loginUser =new LoginUser();
		loginUser.setEnabled(true);
		loginUser.setQq("1008");
		loginUser.setName("中国移动");
		lc.create(loginUser);

	}

}
